package me.helllp.dake.work;

import lombok.extern.slf4j.Slf4j;
import me.helllp.dake.iam.core.config.KaptchaConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RefreshScope
public class TestController {
    @Value("${dake.name:''}")
    private String name;

    @PostMapping("/test")
//    @Cacheable("aaaa")
    public String test(){
        log.info("===================this is a test");
//        return MessageUtils.message("unknown.exception");
        return KaptchaConfig.genVerifyBase64("3456");
    }
}
